import service from '@/utils/request'

// @Tags UserIndex
// @Summary 创建UserIndex
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndex true "创建UserIndex"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userIndex/createUserIndex [post]
export const createUserIndex = (data) => {
     return service({
         url: "/userIndex/createUserIndex",
         method: 'post',
         data
     })
 }


// @Tags UserIndex
// @Summary 删除UserIndex
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndex true "删除UserIndex"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userIndex/deleteUserIndex [delete]
 export const deleteUserIndex = (data) => {
     return service({
         url: "/userIndex/deleteUserIndex",
         method: 'delete',
         data
     })
 }

// @Tags UserIndex
// @Summary 删除UserIndex
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除UserIndex"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userIndex/deleteUserIndex [delete]
 export const deleteUserIndexByIds = (data) => {
     return service({
         url: "/userIndex/deleteUserIndexByIds",
         method: 'delete',
         data
     })
 }

// @Tags UserIndex
// @Summary 更新UserIndex
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndex true "更新UserIndex"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userIndex/updateUserIndex [put]
 export const updateUserIndex = (data) => {
     return service({
         url: "/userIndex/updateUserIndex",
         method: 'put',
         data
     })
 }


// @Tags UserIndex
// @Summary 用id查询UserIndex
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserIndex true "用id查询UserIndex"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userIndex/findUserIndex [get]
 export const findUserIndex = (params) => {
     return service({
         url: "/userIndex/findUserIndex",
         method: 'get',
         params
     })
 }


// @Tags UserIndex
// @Summary 分页获取UserIndex列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取UserIndex列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userIndex/getUserIndexList [get]
 export const getUserIndexList = (params) => {
     return service({
         url: "/userIndex/getUserIndexList",
         method: 'get',
         params
     })
 }